package com.lzs.kunei.feign;

import com.lzs.entity.Commodity;
import com.lzs.entity.Locator;
import com.lzs.entity.Stock;
import com.lzs.util.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

@FeignClient(value = "baseruku-service")
public interface FeignRuku {
    @ApiOperation(value = "根据仓库和和类型查询库位")
    @GetMapping("/baseruku/locator/selectLocatorByType/{warehouseid}/{type}")
    public List<Locator> selectLocatorBycode(@PathVariable Long warehouseid, @PathVariable String type);

    @ApiOperation(value = "根据商品条码查询商品信息")
    @GetMapping("/baseruku/commodity/selectCommodityByBar/{bar}")
    public Commodity selectCommodityByBar(@PathVariable String bar);

    @ApiOperation(value = "根据货位编码查询库位信息")
    @GetMapping("/baseruku/locator/selectLocatorById/{code}")
    public Locator selectLocatorBycode2(@PathVariable String code);
}
